#coding=utf-8
# 计算积分x^2
from scipy import integrate


def f(x):
    return 3*x**2


def intergate_scipy(start, stop):
    result = integrate.quad(f, start, stop)
    return result[0]
